const express = require('express')
const router = express.Router()

const userHandler = require('../router_handler/userinfo_Handler')

router.post('/add', userHandler.userAdd)

router.get('/allUsers', userHandler.userAll)

router.post('/edit/:id', userHandler.userEdit)

router.post('/delete/:id', userHandler.userDelete)

router.get('/test', (req, res) => {
    res.json({ msg: 'login works' })
})

module.exports = router